package com.xbk.seckill.common.model.event;

import com.xbk.seckill.common.model.message.TopicMessage;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 事件基础模型
 *
 * @author xiexu
 * @date 2025/2/5 09:47
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class SeckillBaseEvent extends TopicMessage {

    /**
     * 业务数据的id
     */
    private Long id;

    /**
     * 状态
     */
    private Integer status;

    public SeckillBaseEvent(Long id, Integer status, String topicEvent) {
        super(topicEvent);
        this.id = id;
        this.status = status;
    }

}
